# Author: Lovy
# File : allelements
# Time : 2023-03-17 19:22

class Locators:
    """
        封装页面的元素定位器
    """
    # LOGINPAGE
    USERNAME_INPUT_LOCATOR = 'id', 'username'
    PASSWORD_INPUT_LOCATOR = 'id', 'password'
    LOGIN_BUTTON_LOCATOR = 'id', 'btnLogin'

    # MAINPAGE ELEMENTS
    MAINPAGE_TEXT_LOCATOR = ['css selector', '.no-redirect']    # 首页text
    PERSONAL_CENTER_BUTTON = ['css selector', '.user-avatar']   # 用户中心图片
    LOGOUT_BUTTON = ['css selector', 'a+li+li>span']

    # ...ELEMENTS




